package io.lkt.modules.sys.service.impl;

import io.lkt.modules.sys.dao.BDiscountCouponDao;
import io.lkt.modules.sys.entity.BDiscountCouponEntity;
import io.lkt.modules.sys.entity.SysGzhEntity;
import io.lkt.modules.sys.service.BDiscountCouponService;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;










@Service
public class BDiscountCouponServiceImpl
  implements BDiscountCouponService
{
  @Autowired
  private BDiscountCouponDao bDiscountCouponDao;

  public List<BDiscountCouponEntity> selectCouponListAll(Map<String, Object> params)
  {
    return this.bDiscountCouponDao.selectCouponListAll(params);
  }

  public Integer queryComplainTotal(Map<String, Object> params)
  {
    return this.bDiscountCouponDao.queryComplainTotal(params);
  }

  public void delCouponById(Integer id)
  {
    this.bDiscountCouponDao.delCouponById(id);
  }

  public void addCoupon(BDiscountCouponEntity bDiscountCouponEntity)
  {
    this.bDiscountCouponDao.addCoupon(bDiscountCouponEntity);
  }

  public BDiscountCouponEntity couponById(Integer id)
  {
    return this.bDiscountCouponDao.couponById(id);
  }

  public List<SysGzhEntity> selectGzhCode()
  {
    return this.bDiscountCouponDao.selectGzhCode();
  }

  public void updateCoupon(BDiscountCouponEntity bDiscountCouponEntity)
  {
    this.bDiscountCouponDao.updateCoupon(bDiscountCouponEntity);
  }
}
